package com.db.patterns.adapter;

public class ThreeToTwoAdapter implements ThreePower {
    private final TwoPower twoPower;

    public ThreeToTwoAdapter(TwoPower twoPower) {
        this.twoPower = twoPower;
    }

    @Override
    public void getPowerThree() {
        System.out.println("通过适配器转化电力");
        this.twoPower.getTwoPower();
    }
}
